package main

import (
	_ "beego/testApp/routers"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
)

func init(){

	orm.RegisterDriver("sqlite", orm.DRSqlite)
    orm.RegisterDataBase("default", "sqlite3", "./db/admin.db")
	orm.RunSyncdb("default", false, true)
}

func main() {
	beego.BConfig.WebConfig.Session.SessionOn = true
	beego.Run()
}

